const router: CustomRoute[] = [
  // 第一个路由对象是固定的 不可删除
  {
    name: 'CBC',
    path: '/CBC',
    redirect: '/CBC/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '工作台',
      path: '/CBC',
      target: '0',
      code: '0005',
      icon: 'icon-gongzuotai'
    },
    children: [
      {
        name: 'CBC-home',
        path: 'home',
        component: () => import('../views/home'),
        meta: {
          path: '/CBC',
          target: '0-0',
          title: '工作台',
          parentName: 'CBC'
        }
      }
    ]
  },
  {
    name: 'assessmentInitiated',
    path: '/assessmentInitiated',
    redirect: '/assessmentInitiated/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '已发起考核',
      path: '/assessmentInitiated',
      target: '1',
      code: '0006',
      icon: 'icon-yifaqikaohe'
      // icon: 'icon-fenxiang2'
    },
    children: [
      {
        name: 'assessmentInitiated-home',
        path: 'home',
        component: () => import('../views/assessmentInitiated'),
        meta: {
          path: '/assessmentInitiated',
          title: '已发起考核',
          target: '1-0',
          parentName: 'assessmentInitiated'
        }
      }
    ]
  },
  {
    name: 'tableOfEvaluation',
    path: '/tableOfEvaluation',
    redirect: '/tableOfEvaluation/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '考评组',
      path: '/tableOfEvaluation',
      target: '2',
      code: '0007',
      icon: 'icon-kaopingzu'
      // icon: 'icon-a-tuanduizuzhijiagoushequn-10'
    },
    children: [
      {
        name: 'tableOfEvaluation-home',
        path: 'home',
        component: () => import('../views/tableOfEvaluation'),
        meta: {
          title: '考评组',
          path: '/tableOfEvaluation',
          target: '2-0',
          parentName: 'tableOfEvaluation'
        }
      }
    ]
  },
  {
    name: 'targetLib',
    path: '/targetLib',
    redirect: '/targetLib/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '指标库',
      path: '/targetLib',
      target: '3',
      code: '0008',
      icon: 'icon-zhibiaoku'
      // icon: 'icon-ku'
    },
    children: [
      {
        name: 'targetLib-home',
        path: 'home',
        component: () => import('../views/targetLib'),
        meta: {
          title: '指标库',
          path: '/targetLib',
          target: '3-0',
          parentName: 'targetLib'
        }
      }
    ]
  },
  {
    name: 'myPerformance',
    path: '/myPerformance',
    redirect: '/myPerformance/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '我的考核',
      path: '/myPerformance',
      target: '9',
      code: '0009',
      icon: 'icon-wodekaohe1'
      // icon: 'icon-touxiang'
    },
    children: [
      {
        name: 'myPerformance-home',
        path: 'home',
        component: () => import('../views/myPerformance'),
        meta: {
          path: '/myPerformance',
          target: '9-0',
          parentName: 'myPerformance'
        }
      }
    ]
  },
  // 部门绩效
  {
    name: 'departmentPerformance',
    path: '/departmentPerformance',
    redirect: '/departmentPerformance/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '部门绩效',
      path: '/departmentPerformance',
      target: '43',
      code: '0041',
      icon: 'icon-bumen'
    },
    children: [
      {
        name: 'departmentPerformance-home',
        path: 'home',
        component: () => import('../views/departmentPerformance/index.vue'),
        meta: {
          path: '/departmentPerformance',
          target: '43-0',
          parentName: 'departmentPerformance'
        }
      }
    ]
  },
  {
    name: 'individualPerformance',
    path: '/individualPerformance',
    redirect: '/individualPerformance/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '部门绩效',
      path: '/individualPerformance',
      target: '44',
      code: '0000',
      icon: 'icon-bumen',
      hidden: true
    },
    children: [
      {
        name: 'individualPerformance-home',
        path: 'home',
        component: () =>
          import('../views/departmentPerformance/module/individualPerformance/index.vue'),
        meta: {
          path: '/individualPerformance',
          target: '44-0',
          parentName: 'individualPerformance',
          hidden: true
        }
      }
    ]
  },
  // {
  //   name: 'performanceOfTheInput',
  //   path: '/performanceOfTheInput',
  //   component: ()=>import('../views/performanceOfTheInput'),
  //   meta: {
  //     title: '考核录入',
  //     path: '/performanceOfTheInput',
  //     target: '20',
  //     hidden: true,
  //     code: '0000'
  //   }
  // },

  {
    name: 'editEvalutaion',
    path: '/editEvalutaion',
    component: () => import('../views/editEvalutaion'),
    meta: {
      title: '编辑考评组',
      path: '/editEvalutaion',
      target: '21',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'addEvalutaion',
    path: '/addEvalutaion',
    component: () => import('../views/addEvalutaion'),
    meta: {
      title: '添加考评组',
      path: '/addEvalutaion',
      target: '22',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'addTargetToLib',
    path: '/addTargetToLib',
    component: () => import('../views/addTargetToLib'),
    meta: {
      title: '新增指标',
      path: '/addTargetToLib',
      target: '23',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'editTargetToLib',
    path: '/editTargetToLib',
    component: () => import('../views/editTargetToLib'),
    meta: {
      title: '修改指标',
      path: '/editTargetToLib',
      target: '24',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'initiateAssessment',
    path: '/initiateAssessment',
    component: () => import('../views/initiateAssessment'),
    meta: {
      title: '发起考核',
      path: '/initiateAssessment',
      target: '25',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'initiateAssessmentCheck',
    path: '/initiateAssessmentCheck',
    component: () => import('../views/initiateAssessmentCheck'),
    meta: {
      title: '查看已发起考核',
      path: '/initiateAssessmentCheck',
      target: '26',
      hidden: true,
      code: '0000',
      keepAlive: true
    }
  },
  {
    name: 'initiateAssessmentInfo',
    path: '/initiateAssessmentInfo',
    component: () => import('../views/initiateAssessmentInfo'),
    meta: {
      title: '员工绩效详情',
      path: '/initiateAssessmentInfo',
      target: '27',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'setTarget',
    path: '/setTarget',
    component: () => import('../views/setTarget'),
    meta: {
      title: '制定目标',
      path: '/setTarget',
      target: '27',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'targetBaseInfo',
    path: '/targetBaseInfo',
    component: () => import('../views/targetBaseInfo'),
    meta: {
      title: '绩效详情',
      path: '/targetBaseInfo',
      target: '28',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'setTargetByLeader',
    path: '/setTargetByLeader',
    component: () => import('../views/setTargetByLeader'),
    meta: {
      title: '调整绩效',
      path: '/setTargetByLeader',
      target: '29',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'scoreBySelf',
    path: '/scoreBySelf',
    component: () => import('../views/scoreBySelf'),
    meta: {
      title: '自评',
      path: '/scoreBySelf',
      target: '30',
      hidden: true,
      code: '0000'
    }
  },
  // link-pm
  {
    name: 'linkPm',
    path: '/linkPm',
    component: () => import('../views/linkPm/index.vue'),
    meta: {
      title: '自评',
      path: '/linkPm',
      target: '30',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'scoreByLeader',
    path: '/scoreByLeader',
    component: () => import('../views/scoreByLeader'),
    meta: {
      title: '主管评分',
      path: '/scoreByLeader',
      target: '31',
      hidden: true,
      code: '0000'
    }
  },
  {
    name: 'managerSetting',
    path: '/managerSetting',
    redirect: '/managerSetting/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '系统设置',
      path: '/managerSetting',
      target: '10',
      code: '0005',
      hidden: true,
      icon: 'icon-shujushezhi1'
    },
    children: [
      {
        name: 'managerSetting-home',
        path: 'home',
        component: () => import('../views/managerSetting'),
        meta: {
          title: '系统设置',
          path: '/managerSetting/home',
          target: '10-0'
        }
      }
    ]
  },
  {
    name: 'scoreLevelSetting',
    path: '/scoreLevelSetting',
    redirect: '/scoreLevelSetting/home',
    layout: true,
    component: () => import('../layout'),
    meta: {
      title: '绩效等级',
      path: '/scoreLevelSetting',
      target: '10',
      code: '0005',
      hidden: true,

      icon: 'icon-shujushezhi'
    },
    children: [
      {
        name: 'scoreLevelSetting-home',
        path: 'home',
        component: () => import('../views/scoreLevelSetting'),
        meta: {
          title: '绩效等级',
          path: '/scoreLevelSetting/home',
          target: '11-0'
        }
      }
    ]
  },

  {
    name: 'phone-myPerformance',
    path: '/myPerformance',
    component: () => import('../views-phone/home'),
    meta: {
      title: '我的考核',
      path: '/myPerformance',
      target: '100',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-taskTodo',
    path: '/taskTodo',
    component: () => import('../views-phone/taskTodo'),
    meta: {
      title: '我的待办',
      path: '/taskTodo',
      target: '101',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-taskDone',
    path: '/taskDone',
    component: () => import('../views-phone/taskDone'),
    meta: {
      title: '我的已办',
      path: '/taskDone',
      target: '102',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-pmBaseInfo',
    path: '/pmBaseInfo',
    component: () => import('../views-phone/pmBaseInfo'),
    meta: {
      title: '绩效详情',
      path: '/pmBaseInfo',
      target: '103',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-setTarget',
    path: '/setTarget',
    component: () => import('../views-phone/setTarget'),
    meta: {
      title: '制定绩效',
      path: '/setTarget',
      target: '104',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-setTargetByLeader',
    path: '/setTargetByLeader',
    component: () => import('../views-phone/setTargetByLeader'),
    meta: {
      title: '目标确认',
      path: '/setTargetByLeader',
      target: '105',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-scoreBySelf',
    path: '/scoreBySelf',
    component: () => import('../views-phone/scoreBySelf'),
    meta: {
      title: '自评',
      path: '/scoreBySelf',
      target: '106',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  },
  {
    name: 'phone-scoreByLeader',
    path: '/scoreByLeader',
    component: () => import('../views-phone/scoreByLeader'),
    meta: {
      title: '主管评分',
      path: '/scoreByLeader',
      target: '107',
      code: '0009',
      icon: 'icon-touxiang',
      isPhoneLoad: true
    }
  }
]
export default router
